09. Quiz: Design Task URIs

Design Task URIs

Given the structure of the task table, choose the URI structures that will work best for giving a ContentProvider access to:

  1. A directory (or multiple rows) of task data
  2. Data for a single task identified by it’s ID

Example of the tasks table structure.

Example of the tasks table structure.

Select the best options for a single item and directory of items URI in this scenario. You should check two boxes.

SOLUTION:
  • content://<authority>/tasks
  • content://<authority>/tasks/#